﻿// CUserFntDlg.cpp: 实现文件
//

#include "pch.h"
#include "MFCApplication1.h"
#include "CUserFntDlg.h"
#include "afxdialogex.h"


// CUserFntDlg 对话框

IMPLEMENT_DYNAMIC(CUserFntDlg, CDialogEx)

CUserFntDlg::CUserFntDlg(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_USER_DEF_DIALOG, pParent)
	, m_strV(_T("\uF0B4"))
{
	m_strV = _T("\uF0B4");

}

CUserFntDlg::~CUserFntDlg()
{
}

void CUserFntDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_MY_STATIC1, m_str);
	DDX_Text(pDX, IDC_MY_STATIC1, m_strV);
}


BEGIN_MESSAGE_MAP(CUserFntDlg, CDialogEx)
END_MESSAGE_MAP()


// CUserFntDlg 消息处理程序

#include "resource.h"
BOOL CUserFntDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  在此添加额外的初始化
	fh.LoadFont(IDR_TTF2);
	fh.SetFontStyle();
	
	fh.SetFont(GetDlgItem(IDC_MY_STATIC1)->GetSafeHwnd());


	return TRUE;  // return TRUE unless you set the focus to a control
				  // 异常: OCX 属性页应返回 FALSE
}
